from DebugTrace import DebugTrace

class ThermistorDriver(object):
    def __init__(self, MinTemp, MaxTemp, HoldingTemp, HeaterDriver, CurrentTemp,traceLevel=1):
        self.MinTemp = MinTemp;
        self.MaxTemp = MaxTemp;
        self.HoldingTemp = HoldingTemp;
        self.HeaterDriver = HeaterDriver;
        if CurrentTemp==None:
            self.CurrentTemp = MinTemp;
        else:
            self.CurrentTemp = CurrentTemp;

        self.trace = DebugTrace("Thermistor",traceLevel)
    
    def setCurrentTemp(self, temp):
        self.CurrentTemp = temp;
        
    def getCurrentTemp(self):
        return self.CurrentTemp;
    
    def getHoldingTemp(self):
        return self.HoldingTemp;
    
    def setHoldingTemp(self, temp):
        self.HoldingTemp = temp;